
-- 0 - disable debug info, 1 - less debug info, 2 - verbose debug info
DEBUG = 2

-- use framework, will disable all deprecated API, false - use legacy API
CC_USE_FRAMEWORK = true

-- show FPS on screen
CC_SHOW_FPS = true

-- disable create unexpected global variable
CC_DISABLE_GLOBAL = true

-- for module display
CC_DESIGN_RESOLUTION = {
    width = 800,
    height = 600,
    autoscale = "NO_BORDER",
    callback = function(framesize)
		local scale_x = framesize.width / CC_DESIGN_RESOLUTION.width
		local scale_y = framesize.height / CC_DESIGN_RESOLUTION.height
		local scale
		if scale_x > scale_y then
			scale = scale_x / scale_y
		else
			scale = scale_y / scale_x
		end
		if scale_x > scale_y then
			CC_DESIGN_RESOLUTION.width = CC_DESIGN_RESOLUTION.width * scale
			CC_DESIGN_RESOLUTION.height = CC_DESIGN_RESOLUTION.height * scale
		else
			CC_DESIGN_RESOLUTION.width = CC_DESIGN_RESOLUTION.width * scale
			CC_DESIGN_RESOLUTION.height = CC_DESIGN_RESOLUTION.height * scale
		end

        -- local ratio = framesize.width / framesize.height
        -- if ratio <= 1.34 then
        --     -- iPad 768*1024(1536*2048) is 4:3 screen
        --     return {autoscale = "SHOW_ALL"}
        -- end
    end
}
